package com.twu.biblioteca;

import com.twu.biblioteca.menu.LibraryMenu;
import com.twu.biblioteca.menu.Menu;

import java.util.Scanner;

public class BibliotecaApp {
    public static void main(String[] args) {
        Scanner keyboard = new Scanner(System.in);
        Librarian librarian = new Librarian();
        Menu menu = new LibraryMenu(librarian);

        while (keyboard.hasNext()) {
            String chosenOption = keyboard.next();
            menu = menu.processInput(chosenOption);
        }
    }
}
